package com.bilin.coin.fragment.mill;

import com.bilin.coin.common.base.BaseFragment;
import com.bilin.coin.fragment.MillFragment;
import com.bilin.coin.list.MyMillList;
import com.bilin.coin.tools.AbsViewPagerCustomTabFragment;

import java.util.ArrayList;

public class MyMillManageFragment extends AbsViewPagerCustomTabFragment {

    @Override
    protected String[] fillTabTitle() {
        return new String[]{"使用中","已过期"};
    }

    @Override
    protected void fillFragment(ArrayList<BaseFragment> mFragmentList) {
        mFragmentList.add(MyMillFragment.newInstance(0));
        mFragmentList.add(MyMillFragment.newInstance(1));
    }

    public void onRefresh() {
        MyMillFragment myMillFragment = (MyMillFragment) mFragmentList.get(0);
        MyMillFragment myMillFragment2 = (MyMillFragment) mFragmentList.get(1);
        myMillFragment.digToolsList.refresh(true);
        myMillFragment2.digToolsList.refresh(true);
    }
}
